package com.franklin.ideaplugin.api.ui;

import com.franklin.ideaplugin.api.utils.SwingUtils;
import com.intellij.uiDesigner.core.GridConstraints;

import javax.swing.*;
import java.awt.*;

/**
 * @author Franklin
 * @since 2021/9/15 14:40
 */
public interface IBaseComponent {

    default void addCell(JComponent table, JComponent component, int row, int column, Dimension size){
        SwingUtils.addCell(table, component, row, column, size);
    }

    /**
     * 获取主面板<br>
     * @author Franklin
     * @since 2021/9/26 9:54
     * @param :
     * @return javax.swing.JComponent
     */
    JComponent getMainPanel();
}
